<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>DTL标签</title>
    <style type="text/css">
        .raw1{
            color:#f00;
        }
        .raw2{
            color:#00f
        }
    </style>
</head>
<body>
    {% for user in list_users %}
        <p class="{% cycle 'raw1' 'raw2' %}">第{{ forloop.counter }} 个用户信息
        <br/>
        {% for key,value in user.items %}
            {{ key }}:{{ value }}
        {% endfor %}
     {% empty %}
        <p>暂无用户信息</p>
    {% endfor %}
    <a href="{% url 'index' %}">首页</a>
    {% load static %}
    <img src="{% static '1.jpg' %}" alt="1">
</body>
</html>